package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @author ：zfr
 * @date ：2021/11/3 13:39
 */
@FieldTypeAnnotation(tableName = "t_l_ck_fishpond_fishing", desc = "垂钓日志", autoSave = true, uploadCk = true)
public class LogFishPondFishing extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "天气")
    private int weather;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "起竿结果 0失败1成功2珍稀鱼判定")
    private int resultType; //起竿结果 0失败1成功2珍稀鱼判定
    @FieldTypeAnnotation(desc = "触发物id")
    private int id;

    public LogFishPondFishing(long userId, int weather, int eventId, int resultType, int id) {
        this.userId = userId;
        this.weather = weather;
        this.eventId = eventId;
        this.resultType = resultType;
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }
}
